<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    
</body>
</html>
<script>
    var week = prompt('请输入今天礼拜几:');
switch(week){
case '星期一':alert('今天学习1');break 
case '星期二':alert('今天学习2');break
case '星期三':alert('今天学习3');break
case '星期四':alert('今天学习4');break
case '星期五':alert('今天学习5');break
case '星期六':alert('今天休息6');break
case '星期天':alert('今天休息7');break 
default:alert('输入错误');break
}
</script>